package org.nvframe.util;

import org.newdawn.slick.Image;

public class AnimationResource {
	
	private int tileWidth;
	private int tileHeight;
	private int duration;
	private Image image;
	
	public AnimationResource(Image image, int tileWidth, int tileHeight, int duration) {
		this.image = image;
		this.tileWidth = tileWidth;
		this.tileHeight = tileHeight;
		this.duration = duration;
	}

	/**
	 * Get the width of one tile
	 * 
	 * @return The width of the tile
	 */
	public int getTileWidth() {
		return tileWidth;
	}
	
	/**
	 * Get the height of one tile
	 * 
	 * @return The height of the tile
	 */
	public int getTileHeight() {
		return tileHeight;
	}

	/**
	 * Get the duration a tile has to be shown in millisecs
	 * 
	 * @return The duration in millisecs
	 */
	public int getDuration() {
		return duration;
	}

	/**
	 * Get the sprite Image resource
	 * 
	 * @return The sprite Image resource
	 */
	public Image getImage() {
		return image;
	}
}
